#include "hashtable.h"

template<class K>
class unordered_Myset
{
	struct SetKeyOfT
	{
		const K& operator()(const K& key)
		{
			return key;
		}
	};
public:
	typedef typename hash_bucket::hash_table<K, K, SetKeyOfT>::iterator iterator;

	iterator begin()
	{
		return _ht.begin();
	}

	iterator end()
	{
		return _ht.end();
	}

	bool insert(const K& key)
	{
		return _ht.insert(key);
	}
private:
	hash_bucket::hash_table<K, K, SetKeyOfT> _ht;
};